ShortPixel\Controller\OptimizeController D

Total Complexity 215
Dependencies 16
Dependents 15
Total lines 1,401
Lines of code 985
Logical lines of code 620
Comment lines 177
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
handleAPIResult()
D
21
37 226
calculateStatsTotals()
C
36 29 73
handleOptimizedItem()
C
35 23 90
sendToProcessing()
B
40 15 61
addItemToQueue()
A
37 10 79
processQueue()
A
43 11 50
queueToJson()
A
47 10 37
scaledImageChangedHook()
A
47 10 36
thumbnailsChangedHook()
A
46 9 39
numberFormatStats()
A
50 9 29
restoreItem()
A
40 6 62
getQueue()
S
53 6 24
convertPNG()
S
48 5 37
deleteTempFiles()
S
56 6 19
reOptimizeItem()
S
53 5 22
runTick()
S
57 4 16
checkQueueClean()
S
64 5 10
HandleItemError()
S
58 2 14
resetQueues()
S
66 2 8
uninstallPlugin()
S
66 2 8
isItemInQueue()
S
65 2 9
getStartupData()
S
61 1 13
getJsonResponse()
S
68 1 8
getAPI()
S
81 1 3
thumbnailsChangedHookLegacy()
S
80 1 3
setLastID()
S
80 1 3
getLastId()
S
80 1 3
setBulk()
S
81 1 3